<div id = "main-content-area">
	<div class="rem_top_wrapper">
		<span class="font9f0028 fs15"><strong>Message</strong></span> 
		<span class="fs15 font747474">from</span> 
		<span class="font9f0028 fs18"><strong><?php echo $records->firstname;?>&nbsp;<?php echo $records->lastname;?></strong></span>
	</div>
	<div id="main-content-wrap" style="overflow:auto;">
		<div class="eulogy_user_top">
			<div class="eulogy_arrow_holder fleft">
				<div class="ev_arrow"></div>
			</div>
			<div class="fleft txt_header_top"><a href="<?php echo base_url();?>profile/eulogy_video/<?php echo $this->encryption_lib->encode($records->userid);?>">View user Eulogy Video</a></div>
			<div class="clear"></div>
		</div>
		<div class="eulogy_heading_holder">
			<div class="fleft ml10 txtdetails">DETAILS</div>
			<div class="fright mr75">TYPE</div>
			<div class="clear"></div>
		</div>
		<?php 
			if(isset($messages1) && count($messages1) > 0){
				foreach($messages1 as $msg1){
		?>
			<div class="eulogy_msg_wrapper">
				<div class="details_info_holder fleft">
					<div><strong><a href="<?php echo base_url().'messages/view/'.$msg1['type'].'/'.$this->encryption_lib->encode($msg1['messageid']); ?>"><?php echo $msg1['subject'];?></a></strong></div>
					<div><?php echo date('M d, Y',strtotime($msg1['date_added']))?></div>
				</div>
				<div class="fright mr70"><?php echo ucwords($msg1['type']);?></div>
				<div class="clear"></div>
			</div>
		<?php 
				}//end foreach
			}//end if
			if(isset($messages2) && count($messages2) > 0){
				foreach($messages2 as $msg2){
		?>
				<div class="eulogy_msg_wrapper">
					<div class="details_info_holder fleft">
						<div><strong><a href="<?php echo base_url().'messages/view/'.$msg2['type'].'/'.$this->encryption_lib->encode($msg2['messageid']); ?>"><?php echo $msg2['subject'];?></a></strong></div>
						<div><?php echo date('M d, Y',strtotime($msg2['date_added']))?></div>
					</div>
					<div class="fright mr70"><?php echo ucwords($msg1['type']);?></div>
					<div class="clear"></div>
				</div>
		<?php
				}//end foreach
			}//end if
		?>
	</div>
</div>